]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Avoid using an undefined _swipeTracker
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Tue, 14 Mar 2023 09:35:34 +0000 (17:35 +0800)
committerMarge Bot <marge-bot@gnome.org>
Sun, 19 Mar 2023 13:12:22 +0000 (13:12 +0000)
It might have been deleted already during shutdown by `_onDestroy()`.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6512
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2693>

js/ui/appDisplay.js

index 17afb899d1d5e530cd03f8f1c6b305fc4bfafdab..75a458f7b36ed45528d1c6f885bb60f14c565e58 100644 (file)
@@ -1237,7 +1237,8 @@ var BaseAppView = GObject.registerClass({
     }
 
     vfunc_unmap() {
-        this._swipeTracker.enabled = false;
+        if (this._swipeTracker)
+            this._swipeTracker.enabled = false;
         this._disconnectDnD();
         super.vfunc_unmap();
     }